﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Itfort
{
	/// <summary>
	/// 
	/// </summary>
	public static class EnumerableExtensions
	{
		/// <summary>
		/// 
		/// </summary>
		/// <typeparam name="T"></typeparam>
		/// <param name="first"></param>
		/// <param name="second"></param>
		/// <param name="func"></param>
		/// <returns></returns>
		public static IEnumerable<T> Except<T>(this IEnumerable<T> first, IEnumerable<T> second, Func<T, T, bool> func)
		{
			return first.Except(second, new EqualityComparerEx<T>(func));
		}
	}
}
